package cn.sitedev.prototype.general;

/**
 * @author qchen
 * @description 原型对象
 * @date 2020/9/18 1:14
 */

import lombok.Data;

@Data
public class ConcretePrototype implements IPrototype {
    private int age;
    private String name;

    @Override
    public ConcretePrototype clone() {
        ConcretePrototype concretePrototype = new ConcretePrototype();
        concretePrototype.setAge(this.age);
        concretePrototype.setName(this.name);
        return concretePrototype;
    }
}
